package main;

import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import repository.BookClassRepository;
import domain.BookClass;

public class Main {

	public static void main(String[] args) {
		ApplicationContext appCtx = 
                new ClassPathXmlApplicationContext("daoContext.xml");
        
		BookClassRepository bookRep = appCtx.getBean("bookClassRepository", BookClassRepository.class);
		
		List<BookClass> list = bookRep.findAll();
		System.out.println(list);
	}

}
